package com.tencent.mid.api;

import android.util.Log;
import com.tencent.mid.util.Util;

final class a
  implements MidCallback
{
  public final void onFail(int paramInt, String paramString)
  {
    Log.e("MID", "failed to get mid, errorcode:" + paramInt + " ,msg:" + paramString);
    this.a.onFail(paramInt, paramString);
  }

  public final void onSuccess(Object paramObject)
  {
    if (paramObject == null)
      return;
    paramObject = MidEntity.parse(paramObject.toString());
    Util.logInfo("success to get mid:" + paramObject.getMid());
    this.a.onSuccess(paramObject.getMid());
  }
}